home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / oops / r3errdb.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  1.1 KB  |  53 lines

  1.  
  2. // JavaScript wrapper for r3errdb.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_ERRDB_H = 1;
  7. include("oops/r3root.js")
  8.  
  9.  
  10. var R3CLID_ERRORDATABASE = 596;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Registers a error code/error string pair. This is a class method.
  16. // p1: Integer, code
  17. // p3: Integer, string    
  18.  
  19. R3ERRDBCM_REGISTERERROR = 596000;
  20.  
  21. function mR3ERRDBCM_REGISTERERROR(p1, p3) {
  22.   DoA2(this.r3obj, 596000, p1, R3TID_INTEGER, 0, p3, R3TID_BYTE, 0);
  23. }
  24.  
  25. // Description: Get an error string for a given error code. This is a class method.
  26. // Returns: Integer, error string
  27. // p3: Integer, error code    
  28.  
  29. R3ERRDBCM_GETERRORSTRING = 596001;
  30.  
  31. function mR3ERRDBCM_GETERRORSTRING(p3) {
  32.   return   DoA(this.r3obj, 596001, p3, R3TID_INTEGER, 0);
  33. }
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40. function r3Errordatabase () { 
  41.    this.base = r3God;
  42.    if(arguments.length) {
  43.       this.base(R3CLID_ERRORDATABASE, arguments);
  44.    }
  45.    // Methods
  46.    this.REGISTERERROR=mR3ERRDBCM_REGISTERERROR;
  47.    this.GETERRORSTRING=mR3ERRDBCM_GETERRORSTRING;
  48.  
  49.    // Attributes
  50. }
  51.  
  52. r3Errordatabase.prototype=new r3Root;
  53. // r3errdb.h_H